package com.googlecode.lightest.studio

import grails.util.DomainBuilder

class ConfigurationTests extends GroovyTestCase {
    def builder

    @Override
    void setUp() {
        builder = new DomainBuilder()
        builder.setClassNameResolver('com.googlecode.lightest.studio')
    }

    void testGetClassPaths() {
        def config = new Configuration()

        config.addToClassPathEntries(new ClassPathEntry(value: 'foo'))
        config.addToClassPathEntries(new ClassPathEntry(value: 'bar'))

        def classPaths = config.getClassPaths()

        assertEquals(3, classPaths.size())
        assertTrue(classPaths.contains('.'))
        assertTrue(classPaths.contains('foo'))
        assertTrue(classPaths.contains('bar'))
    }
}
